// Copyright (c)  YISH. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

namespace NSQL.Expressions.Functions
{
    public class ContainsFunction : BaseExpression, IContainsFunction
    {
        public IValueExpression Expr { get; set; }
        public IStringExpression Pattern { get; set; }

        public ContainsFunction(IValueExpression expression, IStringExpression pattern)
        {
            Expr = expression;
            Pattern = pattern;
        }

        public override T Accept<T>(IExpressionVisitor<T> visitor) => visitor.Visit(this);

    }
}